﻿@{
    ViewBag.Title = "ArticleFrom";
}

@model  zqdn.Web.ViewModels.ArticleViewModel

@System.Web.Optimization.Styles.Render("~/Content/bracket/css/css/bootstrap-wysihtml5.css")

<style type="text/css">
    .wysihtml5-toolbar {
        margin-left: -41px;
    }

        .wysihtml5-toolbar li {
            float: left;
            list-style: none;
        }
</style>

@Html.HiddenFor(o => o.ID)
<div class="form-group">
    <label class="col-sm-3 control-label" for="disabledinput">@Html.DisplayNameFor(o => o.Title)：</label>
    <div class="col-sm-6">
        <input type="text" id="disabledinput" class="form-control" name="Title" value="@Model.Title">
    </div>
</div>

<div class="form-group">
    <label class="col-sm-3 control-label" for="disabledinput">@Html.DisplayNameFor(o => o.Type)：</label>
    <div class="col-sm-6">
        <select class="form-control mb15" name="Type">
            <option value="">请选择...</option>
            <option value="1" @(Model.Type==1?"selected" : "")>名家手术视频</option>
            <option value="2" @(Model.Type==2?"selected" : "")>手术规范学习</option>
            <option value="3" @(Model.Type==3?"selected" : "")>名家谈手术</option>
        </select>
    </div>
</div>


<div class="form-group">
    <label class="col-sm-3 control-label" for="disabledinput">@Html.DisplayNameFor(o => o.Desc)：</label>
    <div class="col-sm-6">
        <input type="text" id="disabledinput" class="form-control" value="@Model.Desc" name="Desc">
    </div>
</div>

<div class="form-group">
    <label class="col-sm-3 control-label" for="disabledinput">@Html.DisplayNameFor(o => o.DoctorID)：</label>
    <div class="col-sm-6">
        @Html.DropDownList("DoctorID", ViewBag.DoctorID as SelectList, new { @class = "required form-control mb15" })
    </div>
</div>


<div class="form-group">
    <label class="col-sm-3 control-label" for="disabledinput">@Html.DisplayNameFor(o => o.Content)：</label>
    <div class="col-sm-6">
        <textarea class="form-control Content" rows="8" name="Content" placeholder="Enter text ...">@Html.Raw(Model.Content)</textarea>
    </div>
</div>


<div class="form-group">
    <label class="col-sm-3 control-label" for="disabledinput">@Html.DisplayNameFor(o => o.VideoUrl)：</label>
    <div class="col-sm-5">
        <input type="text" id="disabledinput" class="form-control upload-video" value="@Model.VideoUrl" disabled="">
        <input type="hidden" name="VideoUrl" id="VideoUrl" value="@Model.VideoUrl" />
    </div>
    <div class="col-sm-2">
        <a class="btn btn-primary" href="javascript:void(0);" id="upload-video">上传手术视频</a>
    </div>
</div>

<div class="form-group">
    <label class="col-sm-3 control-label" for="disabledinput">@Html.DisplayNameFor(o => o.Pdfurl)：</label>
    <div class="col-sm-5">
        <input type="text" id="disabledinput" class="form-control upload-ppt" name="Pdfurl" value="@Model.Pdfurl" disabled="">
        <input type="hidden" name="Pdfurl" id="Pdfurl" value="@Model.Pdfurl" />
    </div>
    <div class="col-sm-2">
        <a class="btn btn-primary" href="javascript:void(0);" id="upload-ppt">上传手术规范</a>
    </div>
</div>


<div class="submit-footer">
    <button class="btn btn-primary" id="btnSave">提交</button>
</div>
